<?
$flash = $this->session->flashdata('flash_message');

if (!empty($flash)):
?>	
<script type="text/javascript">
	$(document).ready(function() {
		 $(".flash_message").delay(4000).fadeOut(2500);
	});
</script>
	<div class="flash_message">
		<?=$flash?>
	</div>	
<? endif; ?>